// 接口返回数据类型
export interface ResData {
  code: number,
  msg:string
}

// 表格单行数据类型
export interface Role {
  active:number
  createTime:string,
  createUser:string,
  deleted:number,
  id?:number,
  realName:string,
  roleName:string,
  updateTime:string,
  updateUser:string,
  version:number,
}

// 全部返回数据类型
export interface RoleResData extends ResData{
  data:{
    records:Role[],
    current:number,
    pages:number,
    size:number,
    total:number,
  }
}

// 查询角色携带参数
export interface queryParams {
  current: number,
  size: number,
  name?: string,
  active: string,
}

//添加与修改菜单携带参数的ts类型
export interface RoleParams {
  id?: number|string
  realName: string 
  roleName: string
  menuIds: string 
}